package com.youkeyi.ddy.cloud.common.api.application.applet.system.todo;

import com.youkeyi.ddy.cloud.common.api.application.applet.system.todo.dto.AppletTodoListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.applet.system.todo.param.AppletTodoCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.system.todo.param.AppletTodoDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.system.todo.param.AppletTodoListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.system.todo.param.AppletTodoUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * AppletTodoCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/applet/todo/fallback")
public class AppletTodoCloudServiceFallback implements AppletTodoCloudService {

    @Override
    public AppletTodoListCloudDto todoList(AppletTodoListCloudParam param) {
        return new AppletTodoListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public AppletTodoListCloudDto doneList(AppletTodoListCloudParam param) {
        return new AppletTodoListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent finish(AppletTodoUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(AppletTodoCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(AppletTodoDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
